import LoginPost from '../plugins/LoginPost';

var weiService = {};
// 微信登录
weiService.shopIndex = function(call,openid,cid,access_token){
	var params={
		openid:openid,
		cid:cid,
		access_token:access_token,
	};
	LoginPost('wei/shop-index?',params,function(msg){
		call(msg)
	},'POST')
}
// QQ登录
weiService.shopTencent = function(call,openid,cid,access_token){
	var params={
		openid:openid,
		cid:cid,
		access_token:access_token,
	};
	LoginPost('wei/shop-tencent?',params,function(msg){
		call(msg)
	},'POST')
}

module.exports = weiService;